package com.ctshk.rpc.cms.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDate;
import java.util.List;

@Data
@ApiModel(value = "MessageDTO对象", description = "消息对象")
public class MessageDTO implements Serializable {

    @ApiModelProperty(value = "消息id")
    private Long id;

    @ApiModelProperty(value = "消息标题")
    private String title;

    @ApiModelProperty(value = "消息内容")
    private String content;

    @ApiModelProperty(value = "消息日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate date;

}